package flex.cc.order.manage.service.impl;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import flex.cc.order.manage.dao.OrderServiceProviderDao;
import flex.cc.order.manage.dto.order.OrderServiceProviderEntity;
import flex.cc.order.manage.service.OrderServiceProviderService;

/**
 * 
 * @author WANGCONG
 * 2021年9月6日下午5:15:41
 * @desc 服务单服务信息业务实现层
 */
@Service("orderServiceProviderService")
@Transactional(rollbackFor = Exception.class)
public class OrderServiceProviderServiceImpl extends ServiceImpl<OrderServiceProviderDao, OrderServiceProviderEntity> implements OrderServiceProviderService{

	@Resource
	private OrderServiceProviderDao orderServiceProviderDao;

	/**
	 *
	 * @author WANGCONG
	 * 2021年9月10日下午5:29:02
	 * @desc 根据map更新服务信息（状态回写）
	 */
	@Override
	public int updateByParams(Map<String, Object> provider_param) {
		return orderServiceProviderDao.updateByParams(provider_param);
	}

	@Override
	public OrderServiceProviderEntity getOneByParams(Map<String, Object> provider_param) {
		return orderServiceProviderDao.getOneByParams(provider_param);
	}
	
	
}
